package com.huang.weic.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.huang.weic.bean.Vo.descpVo;
import com.huang.weic.bean.descp;
import com.huang.weic.service.DescService;
import com.huang.weic.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController()
@RequestMapping("/descp")
public class DescController {

    @Autowired
    private DescService descService;

    @GetMapping("/getOnePlay/{name}")
    public R getOnePlay(@PathVariable String name){

        descpVo one = descService.selectOneplay(name);
        return R.ok().data("one", one);
    }

    @GetMapping("/getOneFood/{name}")
    public R getOneFood(@PathVariable String name){

        descpVo one = descService.selectOneFood(name);
        return R.ok().data("one", one);
    }


}
